import { postRequest } from "@/api"
import { TaskDataDTO } from "@/api/task/types"

export function queryTaskListApi(data: Partial<TaskDataDTO>) {
  return postRequest<TaskDataDTO[]>("/api/task/query", data)
}

export function createTaskApi(data: Partial<TaskDataDTO>) {
  return postRequest("/task/create", data)
}

export function exportTaskApi(data: Pick<TaskDataDTO, "id">) {
  return postRequest("/api/task/")
}
